@PACKAGE_INIT@

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/")
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}")

include(CMakeFindDependencyMacro)
find_dependency(OpenSSL)

set(WITH_GUI @WITH_GUI@)

include("${CMAKE_CURRENT_LIST_DIR}/macos.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/Translations.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/RabbitCommonUtils.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/RabbitCommonTargets.cmake")

if((NOT (LINUX OR UNIX)) OR ANDROID)
    if(NOT PROJECT_NAME)
        message(FATAL_ERROR "Move the find_package(RabbitCommon) to the back of the project(...)")
    else()
        # Install data directory. It include resource(icon theme, style etc).
        set_and_check(data ${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_DATADIR@)
        INSTALL_DIR(SOURCES ${data})

        # Install translations
        INSTALL_DIR(SOURCES ${PACKAGE_PREFIX_DIR}/translations)
    endif()
endif()

include(CMakeFindDependencyMacro)
find_dependency(Qt@QT_VERSION_MAJOR@ COMPONENTS @RabbitCommon_QT_COMPONENTS@)
